package org.halo.trade.data.sina;


public class Level1_ZJLXinfo
{
	public double[][] mf = new double[3][4];
	public String symbol;
	public String name;
	
	public double trade;// 当前价格
	public double netamount;  //资金净流入
	public double changeratio;//涨幅
	public double curr_capital;//
	public double r0x_ratio;//主力罗盘度
	public double turnover;  //换手
	public double volume; //成交手
	
	
	
	public void print()
	{
		System.out.println("===============================");
		System.out.println(symbol + "\t" + name + "\t当前：" + trade + "\t涨幅：" + Utils.doubleToString(changeratio * 100, 1) + "%");

		System.out.println("净流入：" + netamount / 10000 + "万\t成交：" + (volume / 100) + "手\t换手：" + Utils.doubleToString(turnover / 100, 2) + "%\t" + curr_capital);
		for (int j = 0; j < 4; j++)
		{
			System.out.print(mf[0][j] / 10000 + "\t");
		}
		System.out.println();

		for (int j = 0; j < 4; j++)
		{
			System.out.print(mf[1][j] / 10000 + "\t");
		}
		System.out.println();

		// 没有高清楚，这个四个数据的作用
		System.out.println("没有高清楚，这个四个数据的作用:");
		for (int j = 0; j < 4; j++)
		{
			System.out.print(mf[2][j] / 10000 + "\t");
		}
		System.out.println();
		System.out.println("主力罗盘度:" + r0x_ratio);

		// 分类净流入
		for (int j = 0; j < 4; j++)
		{
			System.out.print((mf[0][j] - mf[1][j]) / 10000 + "\t");
		}
		System.out.println();

		double total = 0;
		for (int j = 0; j < 4; j++)
		{
			total += (mf[0][j] + mf[1][j]);
		}
		System.out.println("净流入率：" + netamount / total * 100);

		double main_buy = mf[0][0] + mf[0][1];
		double main_sell = mf[1][0] + mf[1][1];

		double main_net_in = main_buy - main_sell;
		double percent_main_net_in = main_net_in * 100.0 / total;

		System.out.println("主力净流入率：" + percent_main_net_in);
	}	
	
}
